package com.yxjx.duoxue.datamodel;

import java.io.Serializable;

import com.yxjx.duoxue.utils.UIHelper;

public class DMActivity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4675665080552354389L;
	private long activityId;
	private String activityName;
	private String hostName;
	private long startTime;
	private long endTime;
	private String activityDes;
	private String headImageUrl;
	private int visitedCount;
	
	private String contactPhone;
	private int actCount;
	private int actNowCount;
	private String schoolGps;
	private String address;
	private DMLocationPoints addrList;
	private String leftDays;
	
	public long getActivityId() {
		return activityId;
	}
	public void setActivityId(long activityId) {
		this.activityId = activityId;
	}
	public String getActivityName() {
		return activityName;
	}
	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}
	public String getHostName() {
		return hostName;
	}
	public void setHostName(String hostName) {
		this.hostName = hostName;
	}
	public long getStartTime() {
		return startTime;
	}
	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}
	public long getEndTime() {
		return endTime;
	}
	public void setEndTime(long endTime) {
		this.endTime = endTime;
	}
	
	// handle null cases
	public void setEndTime(Object time) {
		if (time == null || !(time instanceof Long)) {
			return;
		}
		this.endTime = (Long) time;
	}
	
	public void setStartTime(Object time) {
		if (time == null || !(time instanceof Long)) {
			return;
		}
		this.startTime = (Long) time;
	}
	public String getActivityDes() {
		return activityDes;
	}
	public void setActivityDes(String activityDes) {
		this.activityDes = activityDes;
	}
	public String getHeadImageUrl() {
		return headImageUrl;
	}
	public void setHeadImageUrl(String headImageUrl) {
		this.headImageUrl = headImageUrl;
	}
	public String getContactPhone() {
		return contactPhone;
	}
	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}
	public int getActCount() {
		return actCount;
	}
	public void setActCount(int actCount) {
		this.actCount = actCount;
	}
	public int getActNowCount() {
		return actNowCount;
	}
	public void setActNowCount(int actNowCount) {
		this.actNowCount = actNowCount;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getSchoolGps() {
		return schoolGps;
	}
	public void setSchoolGps(String schoolGps) {
		this.schoolGps = schoolGps;
	}
	public DMLocationPoints getAddrList() {
		return addrList;
	}
	public void setAddrList(DMLocationPoints addrList) {
		this.addrList = addrList;
	}
	public int getVisitedCount() {
		return visitedCount;
	}
	public void setVisitedCount(int visitedCount) {
		this.visitedCount = visitedCount;
	}
	public String getLeftDays() {
		return leftDays;
	}
	public void setLeftDays(String leftDays) {
		this.leftDays = leftDays;
	}
	
}
